/** 
 * Description:团购商品管理
 * Date:2013-1-9
 * Author:Along	
*/
package com.community.shopping.service.logic;
import java.util.List;
import com.community.shopping.dao.GroupGoodsDao;
import com.community.shopping.domain.GroupGoods;
public class GroupGoodsManager {
	
	public GroupGoodsDao groupGoodsDao;

	
	/**
	 * @return the groupGoodsDao
	 */
	public GroupGoodsDao getGroupGoodsDao() {
		return groupGoodsDao;
	}

	/**
	 * @param groupGoodsDao the groupGoodsDao to set
	 */
	public void setGroupGoodsDao(GroupGoodsDao groupGoodsDao) {
		this.groupGoodsDao = groupGoodsDao;
	}

	public GroupGoods getGroupGoodsById(Integer id){
		return groupGoodsDao.getGroupGoods(id);
	}
	
	public void save(GroupGoods groupGoods){
		groupGoodsDao.save(groupGoods);
	}

	public void delete(GroupGoods groupGoods){		  
		groupGoodsDao.delete(groupGoods);
	}
	
	public List<GroupGoods> getGroupGoods(Integer shopId) {  		
		 return groupGoodsDao.getGroupGoods(" shopId="+shopId+" order by sort");
		 }
}
